<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  .fr {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

  }

  .container {
    width: 100px;
    height: 100px;
    background-color: red;
  }
</style>

<body>
  <div class="fr">
    <div id="first_box" class="container" onclick="click"></div>
    <div class="container"></div>
    <div class="container"></div>
    <div class="container"></div>
    <div class="container"></div>
  </div>
</body>

<script>
  const firstBox = document.querySelector('#first_box')
  addEventListener('click', (e) => {
    alert('我被点击了')
  })
</script>

</html>